<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Bootstrap 3, from LayoutIt!</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">

	<!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
	<!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
	<!--script src="js/less-1.3.3.min.js"></script-->
	<!--append ‘#!watch’ to the browser URL, then refresh the page. -->
	
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/style.css" rel="stylesheet">

  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
  <![endif]-->

  <!-- Fav and touch icons -->
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/apple-touch-icon-144-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/apple-touch-icon-114-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon-72-precomposed.png">
  <link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-57-precomposed.png">
  <link rel="shortcut icon" href="img/favicon.png">
  
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/scripts.js"></script>
</head>

<body>
<div class="container">
	<div class="row clearfix">
    		<jsp:include page="../nav.jsp"/>
    		
		<div class="col-md-12 column">
			<h3 class="text-center">
				发布物品
			</h3>
			<form class="form-horizontal" role="form" action="addMessage.action" method="post">
			<div class="form-group">
					<div class="col-xs-4">
						<input type="text" class="form-control" name="user.code" value="${user.code}" style="display:none;">
					</div>
				</div>
				
				<div class="form-group">
					 <label for="inputPassword3" class="col-sm-3 control-label">物品</label>
					<div class="col-xs-4">
						<div class="dropdown">
							 <select class="form-control" name="goods.goodsId">
                                    <option class="" >---请选择---</option>
                                    <c:forEach items="${goodsList}" var="goods">
                                    <option class="" value="${goods.goodsId}">${goods.goodsName}</option>
                                    </c:forEach>
                                </select>
						</div>
					</div>
				</div>
				<div class="form-group">
				<label for="inputPassword3" class="col-sm-3 control-label">赠送</label>
				<div class="input-group">
					<div class="col-xs-4 input-group">
												<span class="input-group-addon">
												
												<input type="radio"
														name="goods.status" value="2">是
												</span>
												<span class="input-group-addon">
												<input type="radio"
														name="goods.status" value="1" checked="checked">否
												</span>
					</div>						
											</div>
				</div>
				<div class="form-group">
					 <label for="inputEmail3" class="col-sm-3 control-label">信息标题</label>
					<div class="col-xs-4">
						<input type="text" class="form-control" name="title">
					</div>
				</div>
				<div class="form-group">
					
				</div>
				<div class="form-group">
					 <label for="inputPassword3" class="col-sm-3 control-label">摘要</label>
					<div class="col-xs-8">
						<textarea class="form-control" rows="5" name="summary"></textarea>
					</div>
				</div>
				<div class="form-group">
					
				</div>
                
				
             
				<div class="form-group">
					
				</div>
                
				
				<div class="form-group">
					<div class="col-sm-offset-3 col-xs-1">
						 <button type="submit" class="btn btn-default">提交</button>
					</div>
                    <div class="col-sm-offset-3 col-xs-1">
						 <button type="reset" class="btn btn-default">重置</button>
					</div>
				</div>
			</form>
		</div>
		
		</div>
	</div>
    <jsp:include page="../foot.jsp"></jsp:include>

</body>
</html>
